package com.example.es.search.repository;

import com.example.es.search.model.PostDocument;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

/**
 * 只需要继承ElasticsearchRepository，调用其search()方法，接口之间的继承关系：
 *
 *      @Index——>Repository——>CrudRepository——>PageAndSortRepository——>ElasticSearchCrudRepository——>ElasticSearchRepository
 *
 * @Author 林必昭
 * @Date 2019/9/7 10:52
 */

@Repository
public interface PostRepository extends ElasticsearchRepository<PostDocument,Long> {
}
